﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KPIS.GERP.Models;
using System.Data.Entity;

namespace KPIS.GERP.WEB.GIMS.Controllers
{
    public class WorkOnDutyController : Controller
    {
        //
        // GET: /WorkOnDuty/

        public ActionResult Details(int id)
        {
            ViewBag.Id = id;
            KPIS.GERP.Models.HRM.MpPositionWorkOnDuty wod = new GERPContext(true).
                MpPositionWorkOnDuties.Include(o=>o.ByEmployee).Include(o=>o.ToPosition).FirstOrDefault(o => o.WodId == id);
            return View(wod);
        }

    }
}
